<h1>ShowFrame</h1>

<p>ShowFrame is used to instruct the Flash Player to display a single frame in a 
movie or movie clip. When a frame is displayed the Flash Player performs the 
following:</p>

<div style="padding-left:20px; margin-bottom:10px;">
<ul>
<li>The contents of the Flash Player's display list are drawn on the screen.</li>
<li>Any actions defined using a DoAction instruction are executed.</li>
</ul>
</div>

<table>

<tr>
<th>Field</th>
<th>Type</th>
<th>Size</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top">type</td>
<td nowrap valign="top">unsigned bit</td>
<td nowrap valign="top" align="right">10</td>
<td>Identifies the ShowFrame instruction when it is encoded. It is encoded with 
the length field as a 16-bit integer (Little-endian byte order).</td>
</tr>

<tr>
<td nowrap valign="top">length</td>
<td nowrap valign="top">unsigned bit</td>
<td nowrap valign="top" align="right">6</td>
<td>The length in bytes of the body of the instruction when it is encoded. Encoded with the type 
field as a 16-bit integer. ShowFrame has no other information encoded in the 
instruction to the length is always set to zero.</td>
</tr>

</table>

<p>Objects are placed in the display list using the PlaceObject and PlaceObject2 
instructions and removed using the RemoveObject and RemoveObject2. An object 
that has been added to the display list will be displayed in each frame until it 
is explicitly removed. There is no need to repeatedly add it to the display 
list.</p>

<p>The scope of a frame is delineated by successive ShowFrame objects. All the 
commands that affect change the state of the display list or define actions to 
be executed take effect when the Flash Player displays the frame. All the objects 
displayed in a frame must be defined before they can be displayed. The movie is 
displayed as it is downloaded so displaying objects that are defined later in a 
movie is not allowed.</p>

<h2>History</h2>

<p>The ShowFrame instruction is documented as the ShowFrame tag in the Macromedia 
Flash (SWF) File Format Specification. It was introduced in Flash 1.</p>
